home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Education
/
World of Education.iso
/
world_c
/
cmptutor.zip
/
TUTORGO.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-09-16
|
23KB
|
648 lines
@echo off
cls
echo.
echo.
beep
beep
beep
echo ATTENTION! - You Must Have the Line:
echo DEVICE=C:\DOS\ANSI.SYS
echo Written In Your CONFIG.SYS File
echo to Run This Tutor!
echo.
echo You may Exit this Program Now to add the line
echo if you don't already have ANSI.SYS installed.
echo.
echo.
echo Do You Want to EXIT the Tutor Now to Install ANSI.SYS ?
echo.
echo Entering a "Y" Here Will Exit You Out of This Program
echo and Entering a "N" Here Will Continue To The Tutor
echo.
showline Enter Your Choice Here (Y/N):
y_or_n
IF ERRORLEVEL 1 GOTO EXIT
IF ERRORLEVEL 0 GOTO PROCEED
:PROCEED
cls
beep
ansi 1;40;37m
echo █▀▀▀▀▀▀▀▀▀▀▀▀█
echo █
█
echo █ ▄ ▄ █
echo █ ▀▀▀ █
echo ▀▀▀▀▀▀██▀▀▀▀▀▀
echo ████████████████████
echo ███████████████═══██
echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
echo.
echo.
echo
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
echo
░
▒
▓
▓
▒
░
echo
░
▒
▓
What Do I Do With This
!@#*!
Thing ?
▓
▒
░
echo
░
▒
▓
≡
A Simple Computer Tutor
≡
▓
▒
░
echo
░
▒
▓
▓
▒
░
echo
░
▒
▓
Written by:
Ralph Melancon
▓
▒
░
echo
░
▒
▓
Sysop - Gem-Sun Systems BBS
▓
▒
░
echo
░
▒
▓
(504) 447-9204
▓
▒
░
echo
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
ansi 36m
echo.
beep
echo Do You Want to Continue With This Tutor Session - (
Y
/
N
)
?
echo.
showline Enter Your Choice Here:
y_or_n
IF ERRORLEVEL 1 GOTO GO
IF ERRORLEVEL 0 GOTO EXIT
ansi 1;40;37m
:GO
echo.
ansi 36m
pause
cls
echo.
echo.
set name=
beep
echo
What is Your First Name?
inputnam
echo.
call savenam.bat
echo.
cls
echo.
beep
echo
Hello There
%name%
, Welcome to this Humble
echo Little Computer Tutor!
echo.
ansi 0;1;44;37m
echo Much technical information is written for the use of Your new
echo Computer System, but it is this program's desire to help a NEW
echo computer user to just "move" around and get aquainted with his
echo system.
echo This Tutor is written for IBM compatibles which operate in a
echo DOS environment. Through it, you will be given a chance to
echo FAMILIARIZE yourself with your computer and a few useful DOS
echo commands.
echo I hope you find it informative, fun and useful! As your fluency
echo in computer operations increases, please check our BBS for more
echo useful programs.
ansi 0;1;40;35m
echo.
echo Ralph Melancon
echo
Sysop -
Gem-Sun Systems BBS
echo (504) 447-9204
ansi 0;1;40;32m
echo.
beep
echo Do You Want to Go Straight to the
DOS
Command Menu - (
Y
/
N
)
?
echo (
Entering a "N" will Proceed with the Lesson
)
showline Enter Your Choice Here:
y_or_n
IF ERRORLEVEL 1 GOTO loop
IF ERRORLEVEL 0 GOTO CONTINUE
:CONTINUE
cls
echo.
echo
How does your Computer work ?
ansi 1;40;37m
echo.
echo
Well, this can be a very complicated or very simple question.
echo For our purposes here, we will just say that your computer is a very
echo way of storing information - kind of like a file cabinet only much
echo more powerful - A computer can also PROCESS information!
echo.
echo Whatever program that your system starts when you turn it on - be it
echo MS-Windows; Tandy Deskmate; Packard Bell Menu; or some other Desktop
echo program - it is not the program responsible for operating your system!
echo Your IBM compatible computer is controlled by a program called DOS.
echo DOS stands for :
echo.
beep
beep
echo
D
- Disk
beep
beep
echo
O
- Operating
beep
beep
echo
S
- System
beep
echo.
echo.
echo.
ansi 36m
pause
cls
echo
Needless to say, this is the program responsible for your system's
echo operations. Many people invest in a system and then at some point in
echo their learning, need answers to questions that they may have about
echo operations they wish to perform. They call the place where they had
echo purchased their system only to find out that the person who sold them
echo the system is unavailable, out of town, or knows less than they do
echo about the disk operations program.
echo.
echo
What do you do?
ansi 1;40;37m
echo.
echo At this point you can:
echo 1
)
Call Someone Else (if you're lucky and it's not 3am)
echo 2
)
Forget it All and bring back your computer and
echo attempt to get a refund.
echo (Only to find out that Your refund policy has expired)
echo 3
)
Take a Sledge Hammer and Crash Your Computer
echo 4
)
Take a Sledge Hammer and Crash the Salesperson (grin)
echo 5
)
"Wip Out" Your Complete Reference DOS Manual and
echo look it up!
echo.
beep
echo
Wow
! Good thing You learned a little about Your Operating System
echo or frustration could have got the best of you!
echo.
ansi 36m
pause
cls
echo.
echo
Your Computer (Hard Drive) is composed of Different Drives or Disks.
echo The Hard Drive is usually considered to be
C:
Drive
echo The Floppy Drive is usually considered to be
A:
or
B:
Drive
echo A Floppy Drive is Usually
5¼
inch (large & flimsy)
echo or
3½
inch (small & firm)
echo If you have both 5¼ & 3½ inch Floppy Drives:
echo 1 will be considered A: Drive
echo & the other will be considered B: Drive
echo.
echo C: Drive (Hard Disk) is a convenient Storage Space on which you are
echo able to install your favorite programs and run without needing to
echo run them from a floppy disk. These programs are stored
INSIDE
of your
echo computer. Typical storage capacities on these Hard Drives are usually
echo somewhere in the range between 20 - 40 - 80 - 105 - 130 megabytes, and
echo as you can reasonably deduce, they store MUCH more information than
echo your typical floppy disk.
echo.
ansi 36m
pause
cls
echo.
echo
On an IBM compatible, the System which controls the use of your
echo different drives is DOS, and although it has been said that DOS could
echo use some renovation, it is a VERY powerful program!
echo For Instance:
echo If you are running the program Windows, your computer has probably
echo stored Windows on the
C: Drive
in the Windows directory...
echo
C:\WINDOWS\
echo
Within the Windows directory are the files which are needed to run
echo the Windows program. The program which accesses these files in order
echo that they may be ran is DOS.
echo In other words - if the files in the Windows directory are deleted,
echo the Windows program CANNOT run. You can delete these files from DOS
echo and although Windows won't be able to run, DOS will be able to run.
echo If the files in your DOS directory are deleted, DOS will not be able
echo to run AND it is not likely that Windows would run EVEN though the
echo files in the Windows directory are NOT deleted.
echo
Case in point
-
DOS
runs the Windows program &
NOT
vice versa
!
echo.
ansi 36m
pause
cls
:loop
cls
beep
echo
Now For a Few DOS Operation Commands:
echo.
echo To Perform an Operation, Press the Desired Corresponding Number
echo.
echo
▒▒▒▒▒▒▒▒▒▒▒▒▒
Simple Dos Operation Command Menu
▒▒▒▒▒▒▒▒▒▒▒▒▒
echo ▒▒
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▒▒
echo ▒▒
▒▒
echo ▒▒
1
)
Display a Directory Listing of Your C:\ Drive
▒▒
echo ▒▒
2
)
FORMAT a FLOPPY in A: Drive
▒▒
echo ▒▒
3
)
Display Your DOS Version
▒▒
echo ▒▒
4
)
Display Your System's Memory Usage
▒▒
echo ▒▒
5
)
Display a Directory TREE of Your C:\ Drive
▒▒
echo ▒▒
6
)
Print a Directory Listing of Your C:\ Drive
▒▒
echo ▒▒
7
)
Print a Tree Listing of Your C:\ Drive
▒▒
echo ▒▒
8
)
Run Checkdisk on Your C:\ Drive
▒▒
echo ▒▒
9
)
Read Your AUTOEXEC.BAT File
▒▒
echo ▒▒
A
)
Read Your CONFIG.SYS File
▒▒
echo ▒▒
X
)
Continue With The Simple Computer Tutor...
▒▒
echo ▒▒
▒▒
echo ▒▒
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
▒▒
echo ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
echo.
ansi 0;1;40;37m
showline Enter Your Choice Here (1-X):
echo.
:get_key
scancode
IF ERRORLEVEL 2 IF NOT ERRORLEVEL 3 GOTO 1
IF ERRORLEVEL 3 IF NOT ERRORLEVEL 4 GOTO 2
IF ERRORLEVEL 4 IF NOT ERRORLEVEL 5 GOTO 3
IF ERRORLEVEL 5 IF NOT ERRORLEVEL 6 GOTO 4
IF ERRORLEVEL 6 IF NOT ERRORLEVEL 7 GOTO 5
IF ERRORLEVEL 7 IF NOT ERRORLEVEL 8 GOTO 6
IF ERRORLEVEL 8 IF NOT ERRORLEVEL 9 GOTO 7
IF ERRORLEVEL 9 IF NOT ERRORLEVEL 10 GOTO 8
IF ERRORLEVEL 10 IF NOT ERRORLEVEL 11 GOTO 9
IF ERRORLEVEL 30 IF NOT ERRORLEVEL 31 GOTO A
IF ERRORLEVEL 45 IF NOT ERRORLEVEL 46 GOTO COMMANDS
goto get_key
:1
cls
c:
cd\
dir/p
beep
pause
cd\tryout
goto loop
:2
cls
cd\dos
format a:
beep
cd\tryout
goto loop
:3
cls
cd\dos
ver
echo.
beep
pause
cd\tryout
goto loop
:4
cls
cd\dos
mem /c |more
echo.
beep
pause
cd\tryout
goto loop
:5
cls
cd\
tree
echo.
beep
pause
cd\tryout
goto loop
:6
cls
cd\
beep
echo Be Sure To Turn Your Printer On
echo and Put It Online Now
beep
echo.
pause
dir c:\ > prn
echo.
beep
echo Done Printing! Let's Go Back to the DOS Menu Now
echo.
pause
cd\tryout
goto loop
:7
cls
cd\
beep
echo Be Sure To Turn Your Printer On
echo and Put it Online Now
echo.
beep
pause
tree c:\ > prn
echo.
beep
echo Done Printing! Let's Go Back to the DOS Menu Now
echo.
pause
cd\tryout
goto loop
:8
cd\
cls
chkdsk
echo.
beep
pause
cd\tryout
goto loop
:9
cd\
cls
type autoexec.bat |more
echo.
beep
echo This File is Your Autoexec.Bat File
echo Your Computer Executes These Commands Everytime Your Turn It On
beep
echo Note What Programs, Path, Commands are Set Here
echo.
pause
cd\tryout
goto loop
:A
cd\
cls
type config.sys
echo.
beep
echo This File is Your Config.Sys File
beep
echo Note The Device and Memory Drivers That May Be Installed Here.
echo.
beep
pause
cd\tryout
goto loop
:commands
cls
echo.
echo
Ok
...
Did You Enjoy That "
On Hands
" Display of Various DOS Commands
?
beep
echo.
showline Enter Y or N Here:
echo.
y_or_n
IF ERRORLEVEL 1 GOTO YES
IF ERRORLEVEL 0 GOTO WISEGUY
:YES
cls
echo.
beep
echo Of Course You Did,
%name%
echo.
echo.
echo
beep
echo.
goto OK
:WISEGUY
cls
echo.
beep
beep
beep
beep
beep
echo
Watch it
...
%name%
,
You Sure are a Wiseguy
!
beep
beep
beep
beep
beep
echo.
goto OK
:OK
beep
beep
pause
cls
echo.
echo.
echo Now For Your List Of Simple and Useful Dos Commands
echo.
ansi 1;40;35m
echo Please Keep in Mind That This List Does Not Compare to a Complete
echo Reference Manual and
...
echo.
echo
Some of The Following Commands
MAY NOT
be Available to You
echo Depending on What
Version Number
of
DOS
You Are Running.
echo.
ansi 1;40;37m
echo Alright, Let's Learn a Few DOS Commands!
echo.
ansi 36m
pause
cls
echo.
echo
ASSIGN
- This command allows You to trick DOS into thinking A: Drive
echo is C: Drive and Vice Versa.
echo
Examples
: ASSIGN A=C
echo ASSIGN A=C B=C
echo ASSIGN /STATUS - Displays Current Drive Assignments
echo.
echo
CHDIR
- This command allows You to Change Drives or Directories.
echo It can be entered as CD.
echo
Examples
: CD A: - Changes from Current Drive to Drive A:
echo CD\ - Changes to the Root Directory of Current Drive
echo CD\DO - Changes to the "DO" Directory
echo (As Long as it is on the SAME Drive as the Current One)
echo.
echo
CHKDSK
- This command Checks Your Drive's Technical Structure and Reports
echo to You if there are any problems. Also reports to you how much
echo storage space You have remaining on Your Disk.
echo
Examples
: CHKDSK - Checks the Current Drive
echo CHKDSK C:\ - Checks C: Drive
echo CHKDSK /F - Prompts DOS to FIX errors found on the Drive
echo.
ansi 36m
pause
cls
echo.
echo
CLS
- This command allows You to Clear a "jumbled" screen.
echo
Examples
: CLS - Clears the Screen
echo.
echo
COPY
- This command allows You to copy files from one Drive/Directory
echo to Another.
echo
Examples
: COPY A:\FILENAME.EXE - Copies the File "FILENAME.EXE" from
echo Drive A: to the Current Drive.
echo COPY A:\*.* C:\WORK - Copies ALL of the Files on A: Drive to
echo the C:\WORK Directory.
echo.
echo
DATE
- This command allows You to Change Your System's current Date.
echo
Examples
: DATE 12/02/91 - Changes the System's Date to 12/02/91.
echo DATE - Displays Current System Date and Allows
echo You to Enter a New One.
echo.
echo
DIR
- This command allows You to Display a Listing of the Directory.
echo
Examples
: DIR C: - Displays a Directory Listing of Drive C:
echo DIR A: /P - Displays a Directory Listing of Drive A: but
echo allows You to Stop and Read it if it is large.
echo DIR /W - Displays a "Wide" irectory Listing.
echo.
ansi 36m
pause
cls
echo.
echo
DOSSHELL
- This command is available with DOS Versions 4 & 5 only.
echo It provides a DOS Menu from which to perform DOS operations.
echo
Examples
: DOSSHELL - Invokes the DOS SHELL Menu Program.
echo.
echo
EDIT
- This command is available with DOS Version 5 only.
echo It provides a Word Processor/File Editor.
echo
Examples
: EDIT - Ivokes the DOS EDITOR program.
echo.
echo
FDISK
- This command provides a program used to partition your
echo Hard Drive.
echo
Examples
: FDISK - Invokes the FDISK program.
echo.
echo
FORMAT
- This command allows you to Format Your floppy disk in order
echo that You may use them to store files and/or programs.
echo
Examples
: FORMAT A: - Allows You to Format Your New Floppy Disks
echo.
echo
GRAPHICS
- This command allows You to Print Graphics on Your Printer.
echo
Examples
: GRAPHICS - Installs the Graphics Program in Your System Memory.
echo.
ansi 36m
pause
cls
echo.
echo
HELP
- This command is available with DOS Version 5 Only!
echo It provides online Help with DOS commands.
echo
Examples
: HELP FORMAT - This command Displays online Help with the
echo FORMAT command.
echo HELP /? - This command Displays Help with the HELP command.
echo HELP - This command Displays a brief description on all
echo DOS 5 commands.
echo.
echo
MEM
- This command is used to Display Your System's Current memory
echo usage. All device drivers and installed memory resident
echo programs are displayed.
echo
Examples
: MEM /C - This command is called "Classify", and it Displays
echo the status of all programs in upper and conventional
echo memory.
echo.
echo
MKDIR
- This command allows You to Make Directories on Your Drives.
echo It can be entered as "MD".
echo
Examples
: C:\ MD ZIPFILES - This command makes the directory "ZIPFILES"
echo on Your C: Drive.
echo C:\ZIPFILES\ MD SMALL - Makes the "Small" Directory under the
echo C:\ZIPFILES Directory.
echo.
ansi 36m
pause
cls
echo.
echo
PATH
- This command is usually written as a line in Your
echo "AUTOEXEC.BAT" file. It tells DOS to look for files in
echo certain Directories.
echo
Examples
: PATH=C:\DOS;E:\PCTOOLS - This command tells DOS to search the
echo C:\DOS & E:\PCTOOLS Directories for
echo commands You enter. This allows you
echo to start the PCTools Program & perform
echo any DOS commands from ANY Directory!
echo.
echo
RENAME
- This command allows You to Rename Your files. It can be entered
echo as REN.
echo
Examples
: REN AUTOEXEC.BAT AUTO.BAK - This command will Rename the file
echo "AUTOEXEC.BAT" to "AUTO.BAK".
echo.
echo
SYS
- This command transfers the System Files to a Floppy Disk
echo which makes the floppy a "Bootable" Disk with which You can
echo "Boot" Your computer.
echo
Examples
: SYS A: - This command makes the Disk in Drive A: a "Bootable"
echo Disk.
echo.
ansi 36m
pause
cls
echo
TIME
- This command allows You to Set or Display the Current System
echo Time.
echo
Examples
: TIME 23:30:10 - This command sets the Time as 11:30 (10 secs)pm.
echo This format is in 24 Hour format.
echo TIME 11:30pm - This command also sets the System Clock at
echo 11:30pm BUT in the 12 Hour am/pm format.
echo TIME - Displays the Current System Time.
echo.
echo
TREE
- This command Displays a Directory Structure in "Tree" format.
echo Beginning with DOS Version 4, the tree is displayed in a
echo "Graphics" format.
echo
Examples
: TREE C:\ - Displays a Directory Structure of Your C: Drive.
echo TREE C:\ /F - Displays the Structure AND lists the files in
echo each Directory on C: Drive.
echo.
echo
TYPE
- This command Displays the contents of a file.
echo
Examples
: TYPE AUTOEXEC.BAT - Displays the contents of the AUTOEXEC.BAT
echo file.
echo.
echo
VER
- This command Displays the DOS Version Number Your System is
echo operated by.
echo
Examples
: VER - Displays Your System's DOS Version.
echo (DOS Version 1;2;3.2;3.3;4;5, etc...)
ansi 36m
pause
cls
beep
echo.
echo
Well, that completes this Simple Tutor. Hope you enjoyed it and learned
echo a little more about Your Computer System and working with it's
DOS
echo
commands. Practice as You see fit, but one word of advice
:
echo.
echo You will not regret investing in a
COMPLETE REFERENCE
echo MANUAL
for
DOS
.
echo Quick references are helpful also, but an investment of
echo a little more money will help You when You need it most
!
echo.
echo.
echo Would You Like to Return to the Simple DOS Command Menu - (Y/N) ?
echo.
echo Entering a "Y" Will Return You to the DOS Command Menu For More
echo Experimentaion and Entering a "N" Will Exit the Tutor
echo.
showline Enter Your Choice Here:
y_or_n
IF ERRORLEVEL 1 GOTO loop
IF ERRORLEVEL 0 GOTO SIGNOFF
:SIGNOFF
cls
echo.
beep
echo.
echo.
echo
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
echo.
echo
Thanks for Using the Simple Computer Tutor,
%name%
echo.
echo
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
echo.
echo.
echo.
echo.
echo.
del savenam.bat
beep
echo Press any Key to EXIT the Simple Computer Tutor
echo.
pause
echo.
:EXIT
cls
ansi 1;40;32m
echo.
echo.
echo Your Computer Will Now
Reboot
So as to Return Your
Path
Statement
echo Back to it's
Original Path
Environment
echo.
echo.
echo
C:\TRYOUT
was
Added
to Your Path Statement when it ran.
echo The Tutor will now
Reboot
Your System if You so Choose.
echo You are given the option to
Exit
and Reboot Your System Yourself.
echo.
echo
Do You Want to Continue With Exit and Reboot - (Y/N) ?
echo.
echo
Entering a "
Y
" Will Exit the Program and Reboot Your System
echo Entering a "
N
" Will Exit the Program Without Rebooting Your System
echo.
ansi 1;40;37m
showline Enter Your Choice Here:
echo.
y_or_n
IF ERRORLEVEL 1 GOTO REBOOT
IF ERRORLEVEL 0 GOTO BYE
:REBOOT
echo Be Sure To Remove any Floppy Disks From Drive A:
echo AFTER Pressing a Key to Continue!
echo.
pause
bootup
:BYE
cls